<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <script>
      var s = 'abcdefg'
      console.log('长度:' + s.length)
      var s2 = s.concat('bbbb')
      console.log(s2)
      var c = s.charAt(1)
      console.log(c)
      var email = 'zhangsan126.com'
      var idx = email.indexOf('@')
      console.log(idx)
      var stus = 'zhang3;li4;wang5'
      var ay = stus.split(';')
      console.log(ay)

      var str = 'aAabB'
      console.log(str.toLowerCase())
      console.log(str.toLocaleLowerCase())

      console.log(str.toUpperCase())
      console.log(str.toLocaleUpperCase())

      var str2 = 'abcdegggg'
      console.log(str2.substr(2, 2))

      console.log('============' + str2.substring(2, 4))

      console.log(str2.slice(2))
      console.log(str2.slice(2, 4))
    </script>
  </head>
  <body></body>
</html>
